<?php
/**
 * File:          KValidator_Parameter_Upload_Size
 * Description:   -
 * Author:        Kovac "Kovacou'" Alexandre (www.kovacou.fr)
 * Last Update:   21/04/2011
 */

   class KValidator_Parameter_Upload_Size implements KValidatorParameter {
      public  $size;
      
      public function valid ($value, $config) {         
         if ($value["size"] < $this->size)
            return "Le fichier est trop volumineux.";
      }
   }
 
/**
 * End
 * Of
 * File
 */
?>